<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="dialog-warp-ajax add-subject-list">
    <form id="addAssessmentForm">
        <input type="hidden" name="id" id="id" value="${evaluatingResults.id}">
        <table class="dggui-table-info">
            <tbody>
            <tr>
                <th class="required">结果名称：</th>
                <td><input type="text" class="dggui-input wid280" maxlength="50" id="resultsName" name="resultsName" value="${evaluatingResults.resultsName}"></td>
            </tr>
            <tr>
                <th class="required">匹配试题：</th>
                <td>
                    <select class="dggui-select" name="paperId" id="paperId">
                        <option value="">请选择</option>
                        <c:if test="${! empty evaluatingTestPapers}">
                            <c:forEach var="paper" items="${evaluatingTestPapers}">
                                <c:if test="${paper.id == evaluatingResults.paperId}">
                                    <option value="${paper.id}" selected >${paper.paperName}</option>
                                </c:if>
                                <c:if test="${paper.id != evaluatingResults.paperId}">
                                    <option value="${paper.id}" >${paper.paperName}</option>
                                </c:if>
                            </c:forEach>
                        </c:if>
                    </select>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>